From 1ef19653627301e4f9f8330af72de9601744ed46 Mon Sep 17 00:00:00 2001 From: Ercan Erden Date: Sat, 13 Jun 2015 18:54:34 -0400 Subject: [PATCH] Fix bench name completion --- src/etc/_cargo | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/etc/_cargo b/src/etc/_cargo index 314b282ce..655f05f42 100644 --- a/src/etc/_cargo +++ b/src/etc/_cargo @@ -289,13 +289,6 @@ done < $manifest _describe 'packages' packages } -#TODO:parse Cargo.toml for benchmark names -_benchmark_names(){ -local -a benchmarks;benchmarks=( -) -_describe 'tests' tests -} - #TODO:see if it makes sense to have 'locate-project' to have non-json output. #strips package name from json stuff _locate_manifest(){ @@ -348,4 +341,11 @@ _test_names() _get_names_from_array "test" } +#Gets the bench names from the manifest file +_benchmark_names() +{ + _get_names_from_array "bench" +} + + _cargo -- 2.30.2